#include"Sort.h"
#include"func.h"
#define N 100000000
void Test()
{
	srand(time(NULL));
	vector<int> nums(N);

	for (int i = 0; i < N; i++)
	{
		int tmp = rand()+i;
		nums[i] = tmp;
	}

	//BubbleSort(nums);
	//QuickSort(0, nums.size() - 1, nums);
	//InsertSort(nums);

	//SelectSort(nums);
	//ShellSort(nums);
	//vector<int> vt({ 18826  ,   6087    ,  10033 , 19808 ,  10755  , 4479,  15993   ,31080  ,   2218,21974 });
	HeapSort(nums);
	for (int i = 0; i < N; i++)
	{
		if(i+1<N&&nums[i]>nums[i+1])
		printf("%-10d", nums[i]);
	}

}


void Testf()
{
	//func b = GetFunc();
	//cout << b.a << endl;
	char str1[] = "linuxlinux";
	char str2[] = "helloword";
	my_memmove(str1+2, str2, 5);
	//cout << str1 << endl;

	char str3[] = "ertyuidfghjcvbnkkk";
	char str4[] = "cvb";
	cout << my_strstr(str3, str4) << endl;
	
}
int main()
{

	Testf();
	return 0;
}


